<?php
echo 'hello2';

$ftp_server = 'localhost';
$ftp_user_name = 'ushop';
$ftp_user_pass = '09aa62782f05';
$ftp_user_pass = '1uwYyhVb';




$dir = '/domains/ushop.vn/public_html/phpinfo/test';
// set up basic connection
$conn_id = ftp_connect($ftp_server);

// login with username and password
$login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass);
echo "Current directory: " . ftp_pwd($conn_id) . "\n";


// get contents of the current directory
//$contents = ftp_nlist($conn_id, ".");

// output $contents
//var_dump($contents);

// try to change the directory to somedir
//if (ftp_chdir($conn_id, "somedir")) {
   // echo "Current directory is now: " . ftp_pwd($conn_id) . "\n";
//} else { 
//    echo "Couldn't change directory\n";
//}




// try to create the directory $dir
//if (ftp_mkdir($conn_id, $dir)) {
//} else {
 //echo "There was a problem while creating $dir\n";
//}

// close the connection
ftp_close($conn_id);

chmod('test', 0777);   






?>